import request from '@/utils/request'

// 查询用户信誉分列表
export function listCreditScore(query) {
  return request({
    url: '/biz/creditScore/list',
    method: 'get',
    params: query
  })
}

// 查询用户信誉分详细
export function getCreditScore(id) {
  return request({
    url: '/biz/creditScore/' + id,
    method: 'get'
  })
}

// 新增用户信誉分
export function addCreditScore(data) {
  return request({
    url: '/biz/creditScore',
    method: 'post',
    data: data
  })
}

// 修改用户信誉分
export function updateCreditScore(data) {
  return request({
    url: '/biz/creditScore',
    method: 'put',
    data: data
  })
}

// 删除用户信誉分
export function delCreditScore(id) {
  return request({
    url: '/biz/creditScore/' + id,
    method: 'delete'
  })
}
